import { legacy_createStore as createStore, combineReducers, applyMiddleware } from 'redux'
import questionReducer from './quest/requestion'
import thunk from 'redux-thunk'
import logger from 'redux-logger'
const reducer = combineReducers({
	questionReducer
})

export type RootState = ReturnType<typeof reducer>

const store = createStore(reducer, applyMiddleware(thunk, logger))

export default store